xenpaging: allow negative num_pages and limit num_pages
authorKeir Fraser <keir@xen.org>
Fri, 26 Nov 2010 14:20:39 +0000 (14:20 +0000)
committerKeir Fraser <keir@xen.org>
Fri, 26 Nov 2010 14:20:39 +0000 (14:20 +0000)
commitcbf6a23dab0c7eba0b1348c87978b3725ea07df1
tree4485fbe512d2b968581615e7cf6c962c90e5a6b3
parent16e8ccb10c22e49fb4dc803509c0937d2ac5a864
xenpaging: allow negative num_pages and limit num_pages

Simplify paging size argument. If a negative number is specified, it
means the entire guest memory should be paged out. This is useful for
debugging. Also limit num_pages to the guests max_pages.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
tools/xenpaging/xenpaging.c